﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using Simple.Common.Data;

namespace Simple.ViewModel
{
    public class ModularDto : Dto<long>
    {
        [Required(ErrorMessage = "模块名称不能为空")]
        public string ModularName { get; set; }
        public string Icon { get; set; }
        [Required(ErrorMessage = "请设置排序值")]
        [RegularExpression("^[0-9]+$", ErrorMessage = "请输入非负数字")]
        public int Sort { get; set; }
    }
}
